package com.android.tianyuanyouxuan.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

@Entity(
        indexes = {
                @Index(value = "date ASC", unique = false)
        }
)
public class News {

    @Id(autoincrement = true)
    private Long id;

    @NotNull
    private String title;
    @NotNull
    private String content;
    private String user;

    private String type;

    private String pics;
    private java.util.Date date;
@Generated(hash = 648568273)
public News(Long id, @NotNull String title, @NotNull String content,
        String user, String type, String pics, java.util.Date date) {
    this.id = id;
    this.title = title;
    this.content = content;
    this.user = user;
    this.type = type;
    this.pics = pics;
    this.date = date;
}
@Generated(hash = 1579685679)
public News() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getTitle() {
    return this.title;
}
public void setTitle(String title) {
    this.title = title;
}
public String getContent() {
    return this.content;
}
public void setContent(String content) {
    this.content = content;
}
public String getUser() {
    return this.user;
}
public void setUser(String user) {
    this.user = user;
}
public java.util.Date getDate() {
    return this.date;
}
public void setDate(java.util.Date date) {
    this.date = date;
}
public String getType() {
    return this.type;
}
public void setType(String type) {
    this.type = type;
}
public String getPics() {
    return this.pics;
}
public void setPics(String pics) {
    this.pics = pics;
}

}
